﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Service = SkynetCE.Foundation.SkynetServiceProxy;
using Model = SkynetCE.Foundation.Model; 
namespace SkynetCE.Foundation.Services.Translator
{
    public static class TranslatorService 
    {
        public static class ExamCategories
        {
            public static Service.DCExamCategory BusinessToService(Model.ExamCategory value)
            {
                var to = new Service.DCExamCategory();
                to.Id = value.Id.ToString();
                to.Title = value.Title;
                to.Description = value.Description;
                return to;
            }

            public static Model.ExamCategory ServiceToBusiness(Service.DCExamCategory value)
            {
                var to = new Model.ExamCategory();
                to.Id = new Guid(value.Id);
                to.Title = value.Title;
                to.Description = value.Description;
                return to;
            }
        }        
    }
}
